package org.test.dao;

import java.util.List;
import java.util.Map;

import org.test.model.Article;
import org.test.model.User;

public interface IUserDao {
	
	public User selectUserByID(int id);

	public List<User> selectUserByName(String username);
	
	public void addUser(User user);
	
	public void updateUser(User user);
	
	public void deleteAUser(User user);
	
	public List<Article> getArticlesByUserID(User user);
	
	public List<Article> getArticlesByUserID(int id);

	public List<Article> getUserArticles(int id);
	
	public List<Article> getUserArticleByPage(Map map);

	public List<Article> articleListPage(User u);
	
	public void saveArticle(Article article);
	
	//############下面是动态sql
	public List<Article> dynamicIfTest(User user);
	
}
